<?php
// +----------------------------------------------------------------------
// | OneThink [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: 麦当苗儿 <zuojiazi@vip.qq.com> <http://www.zjzit.cn>
// +----------------------------------------------------------------------

namespace Home\Controller;
use User\Api\UserApi;

/**
 * 用户控制器
 * 包括用户中心，用户登录及注册
 */
class WealthController extends HomeController {

	/* 财富中心首页 */
	public function index(){
		if ( !is_login() ) {
			$this->error( '您还没有登陆',U('User/login') );
		}
		$title='财富中心';
		$uid=is_login();
		$user=M('Member')->where(array('uid'=>$uid))->find();
		$this->assign('user',$user);
		$this->assign('meta_title',$title);
		$this->display();
	}


}

